package com.efeichong.project.domain.vo;

import com.efeichong.common.domain.BaseEntity;
import com.efeichong.mapping.Mapping;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * @author
 * @date 2020/12/06
 * @description 权限
 */
@Setter
@Getter
@ApiModel("权限")
public class SysMenuVo extends BaseEntity {
    @Mapping(poProperty = "parent.id")
    @ApiModelProperty(value = "父级id")
    private Long parentId;

    @ApiModelProperty(value = "组件")
    private String component;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "是否为外链（0是 1否）")
    private String isFrame;

    @ApiModelProperty(value = "类型（M目录 C菜单 F按钮）")
    private String menuType;

    @ApiModelProperty(value = "菜单名")
    private String name;

    @ApiModelProperty(value = "路由地址")
    private String path;

    @ApiModelProperty(value = "权限字符串")
    private String perms;

    @ApiModelProperty(value = "显示状态（0隐藏 1显示）")
    private Integer visible;

    @ApiModelProperty(value = "排序")
    private Integer orderNum;

    @ApiModelProperty(value = "是否为叶子 0否 1是")
    private Integer leaves;
}
